Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Error 4005: Notes error: File cannot be created
Feedback Type: Problem
Product Area: Security
Technical Area: Error Message
Platform: Windows
Release: 8.5.3
Reproducible: Always

I have an Domino web application that supports both online and offline (using DOLS). An agent is designed to extract an EXCEL file temporarily to the folder where the database resides, then further read the values in the EXCEL. It works great when on-line.

But when off-line, always encounter this error - "Error 4005: Notes error: File cannot be created (C:\Program Files\Lotus iNotes\DATA\sub_0\zz\devdev\Client Table 1.xls) at line 20 in module detach of ag_LookupClientTables" (the db file path and name is zz\devdev\mydatabase.nsf), when execute the line 20, i.e., "Call nEO.ExtractFile( fileName )".

Here is code of the detatch function module:
' /* ************************************************** */
Dim detachTo As String, fileName As String
Dim nEO As NotesEmbeddedObject
detach = ""
detachTo = detachWhere

If (thisDoc.HasEmbedded) Then
' something is embedded (somewhere)
' locate the attachment by name
Set nEO = thisDoc.GetAttachment(attachmentName)
If Not(nEO Is Nothing) Then
fileName = detachTo & nEO.Source
tell ("detaching " + attachmentName + " to file system as: " + Format$(fileName))
Call nEO.ExtractFile( fileName )
detach = fileName
Else
tell ("attachment " + attachmentName + " not found, cannot load")
End If

End If
' /* ************************************************** */

The error appears when running the off-line on both XP and Windows 7 PCs. It appears that Windows doesn't allow the creation of the EXCEL file onto the PC

Any ideas to resolve this error? Thanks for any suggestions and comments.


Feedback number WEBB8XVUDJ created by ~Nita Fezrelitynds on 09/06/2012

Status: Open
Comments:

Error 4005: Notes error: File canno... (~Nita Fezrelity... 6.Sep.12)
. . It's a LotusScript agent ... (~Nita Fezrelity... 7.Sep.12)
. . . . Solved a while ago ... (~Nita Fezrelity... 5.Nov.12)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS